<html>
	<head>
		<title></title>
		<script src="./Public/jquery.11.min.js"></script>
		<script>
		$(function() {
			//获得验证码图片的地址
			var src = $('.imgCode').attr('src');
			//点击更换图片的地址
			$('.imgCode,.imgA').click(function() {
				$('.imgCode').attr('src', src + '&mt=' + Math.random());
			})
			$('input[name=yanzheng]').blur(function(){
					var user = $(this).val();
					$.ajax({
						url : 'index.php?c=Memder&a=vcofeuser',
						type:'post',
						data:{u:user},
						success:function(phpdata){
							if(phpdata == 1){
								$('#vcofe').html('<span style="color:red">验证码正确</span>');
								$('#reg').attr('disabled',false);
							}else{
								$('#vcofe').html('<span style="color:green">验证码错误</span>');
								$('#reg').attr('disabled',true);
							}
						}
					})
				})
	 	})

</script>
	</head>
	<body>
		<div class="container">
		<form action="" method="post">
			用户名:
			<input type="text" name="username" value=""/>
			<br />
			密码:
			<input type="password" name="password" value=""/>
			<br />
			验证码：
			<input type="text" name="yanzheng" id="" >
				<br />
			<img src="?a=code" alt="" class="imgCode">
				<br />
			<a href="javascript:;" class="imgA">
				看不清换一张
			</a>
			<span id="vcofe"></span>
			<br />
			<input type="submit" value="登录" id="reg"/>
			<br />
			七天免登陆<input type="checkbox" name="name" id="" value="" />
			<br />
			<a href="index.php">
				返回首页
			</a>
		</form>			
	</div>
	</body>
</html>